namespace mplat {
    export class BaseDevice implements IDevice {
        setKeepScreenOn(keepScreenOn: boolean): void {
        }
        setClipboardData(data: any, success?: () => void): void {
            debugLog('复制内容:' + data.data);
            if (!!success) success();
        }
        getClipboardData(success: (res: any) => void): void {
        }
        setStorage(key: string, data: any, success?: () => void): void {
            let keyStr = key + "_" + plat.openId;
            localStorage.setItem(keyStr, data);
            if (!!success) success();
        }
        getStorage(key: string, success?: (res: any) => void): string {
            let keyStr = key + "_" + plat.openId;
            let res = localStorage.getItem(keyStr);
            if (!!success) success(res);
            return res;
        }
        get isVibrateOn() {
            return false
        }
        setVibrateOn(vibrateOn: boolean): void {
        }
        vibrateLong(): void {
        }
        vibrateShort(): void {
        }

    }
}